<template>
	<view>
		<uni-nav-bar left-icon="arrowthinleft" title="发布招聘" :border="false" :fixed="true" bg="bg-fff" color="#333" @clickLeft="goBack()"></uni-nav-bar>
		
		<view class="padding-x-24 padding-y-30">
			<view class="fs-26 color-999">类型</view>
			<view class="flex align-center flex-wrap margin-top-24">
				<view v-for="(item,index) in cate" :key='index' @click="jump('/pages/qiuzhi/fb_two?cate_id='+item.id)" class="fs-24 color-999 btn text-center margin-bottom-24">{{item.name}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				cate:[]
			}
		},
		onLoad() {
			this.init()
		},
		methods:{
			init() {
				this.$api.classify({
					pid: 4
				}).then(res => {
					if (res.code == 1) {
						this.cate = res.data;
					}
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.ipt{height: 70rpx;}
	.btn{
		width: 160rpx;
		height: 60rpx;
		line-height: 60rpx;
		border: 1rpx solid #999;
		border-radius: 8rpx;
		margin-right: 20rpx;
	}
	.btn:nth-child(4n+4){margin-right: 0;}
</style>
